package com.practice.car.cardataapp.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * reduced_price_car
 * @author
 */
@Data
public class ReducedPriceCar implements Serializable {
    @TableId
    private Integer idreducedPriceCar;

    /**
     * 车名，如飞渡，宝马x5
     */
    private String name;

    /**
     * 降价了多少，单位：万元
     */
    private Double reducePrice;

    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + name.hashCode();
        return result;
    }
}
